/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.net;

import app.game.FighterEntity;
import java.net.Socket;

/**
 * client object
 *
 * @author skyr
 */
public class Client {

    private String username;
    private boolean isPlaying;//is in match
    private boolean isInQueue = true;//waiting to play
    private int id;
    private Socket socket;
    private FighterEntity fighterEntity;
    private boolean isRight;

    public Client(String username, int id, Socket socket) {
        this.username = username;
        this.id = id;
        this.socket = socket;
    }

    //<editor-fold defaultstate="collapsed" desc="getters setters">
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public boolean isInQueue() {
        return isInQueue;
    }
    
    public void setIsInQueue(boolean isInQueue) {
        this.isInQueue = isInQueue;
    }
    
    public boolean isIsPlaying() {
        return isPlaying;
    }
    
    public void setIsPlaying(boolean isPlaying) {
        this.isPlaying = isPlaying;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public Socket getSocket() {
        return socket;
    }
    
    public void setSocket(Socket socket) {
        this.socket = socket;
    }
    
    public FighterEntity getFighterEntity() {
        return fighterEntity;
    }
    
    public void setFighterEntity(FighterEntity fighterEntity) {
        this.fighterEntity = fighterEntity;
    }
    
    public boolean isIsRight() {
        return isRight;
    }
    
    public void setIsRight(boolean isRight) {
        this.isRight = isRight;
    }
    //</editor-fold>
}
